package com.dissertation.respository;

import com.dissertation.model.Assets;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface AssetsRepository extends MongoRepository<Assets, String> {

    List<Assets> findByAuthorAndName( String author, String name );

    List<Assets> findByIdIn(String[] ids);

    List<Assets> findByIdIn(List<String> ids);

    List<Assets> findByDeletedIsFalse();
    List<Assets> findByDeletedIsTrue();

    List<Assets> findByNameAndDeletedIsFalse(String name);

     List<Assets> findByParticipantNamesContainsAndDeletedIsFalseAndCategoryLeafName(String participantName,String categoryLeafName);


}
